package com.ruoyi.custom.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

import java.time.LocalDateTime;

/**
 * 商品分类对象 xking_store_category
 * 
 * @author xking
 * @date 2022-08-02
 */
public class StoreCategory extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品分类表ID */
    private Long id;

    /** 父id */
    @Excel(name = "父id")
    private Long pid;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String cateName;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 图标 */
    @Excel(name = "图标")
    private String pic;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    private Integer isShow;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private LocalDateTime addTime;

    /** 分类大图 */
    @Excel(name = "分类大图")
    private String bigPic;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setCateName(String cateName) 
    {
        this.cateName = cateName;
    }

    public String getCateName() 
    {
        return cateName;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }

    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    public void setBigPic(String bigPic) {
        this.bigPic = bigPic;
    }

    public String getBigPic()
    {
        return bigPic;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("cateName", getCateName())
            .append("sort", getSort())
            .append("pic", getPic())
            .append("isShow", getIsShow())
            .append("addTime", getAddTime())
            .append("bigPic", getBigPic())
            .toString();
    }
    public StoreCategory() {
        super();
    }
    public StoreCategory(Long pid) {
        this.pid = pid;
    }
}
